package service;

import JDBC.DBUtils;
import method.AccountBuyInformation;
import method.ItemInformation;

import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Date;

public class test {
    /*public static void main(String[] args){
        String a="wdadsa/dawsdwa/wafasf/dwa";
        String[] data=a.split("/");
        System.out.println(data.length);
        AccountBuyInformation[] BuyInformation= DBUtils.QueryAccountBuyInformation("2020102523525","15288850612");
        Timestamp time=BuyInformation[0].getCreateTime();
        long mill=time.getTime();
        System.out.println(time+" ");
        Calendar cal = Calendar.getInstance();
        cal.setTimeInMillis(mill);
        Date date = new Date();
        date.setTime(mill);
        System.out.println(date);
        long newmill=date.getTime();
        //Timestamp time2=new Timestamp( 2020-10-29 22:54:14);
        //System.out.println(time2);
        boolean res = DBUtils.refund("15288850612", "2020102523525",mill);
    }*/
}
